﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DemoDictionary"
    targetNamespace="http://tempuri.org/DemoDictionary.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/DemoDictionary.xsd"
    xmlns:mstns="http://tempuri.org/DemoDictionary.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="DemoDictionary">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="TeamSetting">
          <xs:annotation>
            <xs:documentation>Team Settings go here</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element type="xs:string" name="Name"/>
              <xs:element type="xs:string" name="Description"/>
              <xs:element type="xs:boolean" name="SetAsDefaultTeam"/>
              <xs:element type="xs:string" name="BacklogIterationPath"/>
              <xs:element name="Iterations">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Iteration" maxOccurs="unbounded" minOccurs="1">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="xs:string" name="Path"/>
                          <xs:element type="xs:date" name="StartDate"/>
                          <xs:element type="xs:date" name="FinishDate"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute type="xs:boolean" name="Run"/>
          </xs:complexType>
        </xs:element>
        <xs:element name="TeamFavorites">
          <xs:annotation>
            <xs:documentation>Team Favorites go here</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="TeamFavorite" maxOccurs="unbounded" minOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="Type"/>
                    <xs:element type="xs:string" name="Name"/>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute type="xs:boolean" name="Run"/>
          </xs:complexType>
        </xs:element>
        <xs:element name="TeamMembers">
          <xs:annotation>
            <xs:documentation>Team Members go here</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="TeamMember" maxOccurs="unbounded" minOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="User"/>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute type="xs:boolean" name="Run"/>
          </xs:complexType>
        </xs:element>
        <xs:element name="WorkItems">
          <xs:annotation>
            <xs:documentation>Work Item Information goes here</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="WorkItem" maxOccurs="unbounded" minOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="ProductBacklogItem">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="xs:string" name="Title"/>
                          <xs:element type="xs:string" name="Description"/>
                          <xs:element type="xs:string" name="AssignedTo"/>
                          <xs:element type="xs:decimal" name="Effort"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="Task" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="xs:string" name="Title"/>
                          <xs:element type="xs:string" name="Description"/>
                          <xs:element type="xs:string" name="AssignedTo"/>
                          <xs:element type="xs:decimal" name="RemainingWork"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute type="xs:boolean" name="Run"/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>